package p.ithorns.tools.serializer;

import java.io.Serializable;

/**
 * @author ithorns
 * @desc
 * Spring Boot Redis 测试类
 * 必须实现 Serializable 和 显示声明一个空构造
 * @create 2017-12-05 19:30
 */
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;
    private String name;
    private Integer age;

    public User() {
        super();
    }

    public User(String id, String name, Integer age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "{" +
                "id:'" + id + '\'' +
                ", name:'" + name + '\'' +
                ", age:" + age +
                "}";
    }
}
